<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="box">
        <input type="text" @keyup.enter="submit" v-model="list.name">
            加载
        <div v-for="(item,index) in list" @click="item.choose=!item.choose">
            <div v-show="item.choose === false">
                <input type="checkbox" v-model="item.choose">{{item.name}}
            </div>
        </div>
            完成
        <div v-for="item in list" @click="item.choose=!item.choose">
            <div v-show="item.choose === true">
                <input type="checkbox" v-model="item.choose">{{item.name}}
            </div>
        </div>
    </div>
</body>
<script src="./vue.js"></script>
<script>
    let vm = new Vue({
        el:"#box",
        data:{
            list:[],
        },
        methods:{
            submit(){
                this.list.push(
                    {
                        name:this.list.name,
                        choose:false
                        }
                    )
            }
        }
    })
</script>
</html>